package com.cy.pj.sys.dao;

import org.apache.ibatis.annotations.Mapper;
import org.omg.CORBA.INTERNAL;

import java.util.List;

@Mapper
public interface SysRoleMenuDao {

    //基于菜单id删除角色关系数据
    int deleteObjectsByMenuId(Integer menuId);


    int deleteObjectsByRoleId(Integer roleId);

    int insertObjects(Integer roleId, Integer[]  menuIds);

    List<Integer> findMenuIdsByRoleIds(Integer[] roleIds);
}
